#ifndef __INF_OV2640_H__
#define __INF_OV2640_H__
#pragma once
#include "esp_camera.h"
#include "driver/i2c.h"
#include "deBug.h"
#include <nvs_flash.h>
#include <sys/param.h>

#define CAM_PIN_PWDN 40
#define CAM_PIN_RESET 42   //software reset will be performed
#define CAM_PIN_VSYNC 41
#define CAM_PIN_HREF 39
#define CAM_PIN_PCLK 34
#define CAM_PIN_XCLK 37
#define CAM_PIN_SIOD 0
#define CAM_PIN_SIOC 1
#define CAM_PIN_D0 9
#define CAM_PIN_D1 11
#define CAM_PIN_D2 12
#define CAM_PIN_D3 10
#define CAM_PIN_D4 33
#define CAM_PIN_D5 35
#define CAM_PIN_D6 36
#define CAM_PIN_D7 38

void Inf_ov2640_init(void);

void Inf_ov2640_GetPic(uint8_t **pic, size_t *len);

void Inf_ov2640_ReturnPic(void);

#endif /* __INF_OV2640_H__ */

